package com.tjp.eight.ui.fragment.collection;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.tjp.eight.R;

/**
 * Created by Administrator on 2017/3/1.
 */
public class CollectionAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
    public CollectionAdapter(Context context) {
        this.context = context;
    }

    Context context;

    @Override
    public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(context).inflate(R.layout.item_my_page_action, parent, false);
        return new CollectionViewHolder(view);
    }

    @Override
    public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {

    }

    @Override
    public int getItemCount() {
        return 2;
    }

    class CollectionViewHolder extends RecyclerView.ViewHolder {
        public CollectionViewHolder(View itemView) {
            super(itemView);
        }
    }
}
